var app = getApp();
Page({
  data: {
    openid: app.globalData.openid,
  },
  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: '地址管理'
    })
    //获取用户地址
    wx.request({
      url: getApp().data.apiurl + '/index.php/index/index/getaddress',
      data: { 
          aopenid:app.globalData.openid
        },
      header: {
        'content-type': 'application/json'
      },
      success: function (res) {
        that.setData({
          address: res.data,
        });
      }
    });
  },
})